<?php
/**
 * Created by PhpStorm.
 * User: u
 * Date: 2018/12/14
 * Time: 10:33
 */
namespace common\sources\read\businessacount;

use common\models\craftsman\BusinessAccount;

class BusinessAcountAccess implements IBusinessAcountAccess
{
    public function getAcount($buyId)
    {
         return BusinessAccount::find()
                ->select("id,total_deposit,ava_deposit,ava_pepper,freezing_golds,freezing_deposit,cash_deposit,create_time")
                ->where(['bus_id' => $buyId])
                ->asArray()
                ->one();
    }
}